#ifndef ADAPTIVETHRESHOLD_H
#define	ADAPTIVETHRESHOLD_H

#include "Effect.h"
#include "Gray.h"

class AdaptiveThreshold : public Effect {
public:
    AdaptiveThreshold(
            int maxValue,
            int adaptiveMethod = CV_ADAPTIVE_THRESH_MEAN_C,
            int thresholdType = CV_THRESH_BINARY,
            int aperture = 3,
            int constant = 5);
    virtual ~AdaptiveThreshold();

    virtual IplImage* apply(const IplImage* in);

private:
    const int maxValue, adaptiveMethod, thresholdType, aperture, constant;
    Gray grayEffect;

};

#endif	/* ADAPTIVETHRESHOLD_H */

